{#**
*
* 功能描述（分页栏模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
<div id="pager" class="pagebar box">
    <script>
        function changePage(obj, idx)
        {
            var url = window.location.href
            url = url.replace(/&page=[0-9]*/g, '');
            url = url.replace(/#*$/, '&page=' + idx);
            obj.href = url;
        }
    </script>
    <span style="margin-right:5px;">总计 {#$totalCnt#}</span> | 
    {#for $idx = 1 to $pageCnt #}
        <a onclick="changePage(this, {#$idx#})" href="#"{#if $idx == $curPage#} class="cur"{#/if#}>第{#$idx#}页</a> |
    {#/for#}
    <span>共 {#$pageCnt#} 页 </span>
</div>
